package com.synjones.entry;

import android.os.Parcel;
import android.os.Parcelable;

public class SignPerson implements Parcelable {



    //唯一ID
    private String invitationCode;
    private String name;
    private String sex;
    private String workPlace;
    private String hotelName;
    private String roomNumber;
    private String documentNumber;
    private String signTime;

    //是否选中
    private boolean selected = false;

    public String getInvitationCode() {
        return invitationCode;
    }

    public void setInvitationCode(String invitationCode) {
        this.invitationCode = invitationCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getWorkPlace() {
        return workPlace;
    }

    public void setWorkPlace(String workPlace) {
        this.workPlace = workPlace;
    }

    public String getHotelName() {
        return hotelName;
    }

    public void setHotelName(String hotelName) {
        this.hotelName = hotelName;
    }

    public String getRoomNumber() {
        return roomNumber;
    }

    public void setRoomNumber(String roomNumber) {
        this.roomNumber = roomNumber;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    public String getDocumentNumber() {
        return documentNumber;
    }

    public void setDocumentNumber(String documentNumber) {
        this.documentNumber = documentNumber;
    }

    public String getSignTime() {
        return signTime;
    }

    public void setSignTime(String signTime) {
        this.signTime = signTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.invitationCode);
        dest.writeString(this.name);
        dest.writeString(this.sex);
        dest.writeString(this.workPlace);
        dest.writeString(this.hotelName);
        dest.writeString(this.roomNumber);
        dest.writeString(this.documentNumber);
        dest.writeString(this.signTime);
        dest.writeByte(this.selected ? (byte) 1 : (byte) 0);
    }

    public SignPerson() {
    }

    protected SignPerson(Parcel in) {
        this.invitationCode = in.readString();
        this.name = in.readString();
        this.sex = in.readString();
        this.workPlace = in.readString();
        this.hotelName = in.readString();
        this.roomNumber = in.readString();
        this.documentNumber = in.readString();
        this.signTime = in.readString();
        this.selected = in.readByte() != 0;
    }

    public static final Creator<SignPerson> CREATOR = new Creator<SignPerson>() {
        @Override
        public SignPerson createFromParcel(Parcel source) {
            return new SignPerson(source);
        }

        @Override
        public SignPerson[] newArray(int size) {
            return new SignPerson[size];
        }
    };
}
